package org.scut.gis.spider;

import com.google.common.collect.Lists;
import org.jetbrains.kotlin.ir.expressions.IrConstKind;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import java.util.Date;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class test {

    @Test
    public void test() {
        List<Integer>  x = Lists.newArrayListWithCapacity(20000);
        for (int i = 0; i < 20000; i++) {
            x.add(i);
        }
        Date d = new Date();
        System.out.println(d.getTime());
        for(Integer i : x) {
            i = i +1;
        }
        Date d1 = new Date();
        System.out.println(d1.getTime());

    }
}
